home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / amos / AMOSList0993.lzh / AMOSLIST / 000245_amos-request@svcs1.digex.net_Sun Sep 26 23:06:10 1993.msg < prev    next >
Internet Message Format  |  1993-10-03  |  3KB

  1. Received: from nextsun.INS.CWRU.Edu by access.digex.net with SMTP id AA08338
  2.   (5.65c/IDA-1.4.4 for <mcox@access.digex.com>); Sun, 26 Sep 1993 23:06:07 -0400
  3. Received: from svcs1.digex.net by nextsun.INS.CWRU.Edu with SMTP (5.65b+ida+/CWRU-1.5.2-freenet-gw)
  4.     id AA26761; Sun, 26 Sep 93 23:04:41 -0400 (from amos-request@svcs1.digex.net for mcox@access.digex.com)
  5. Received: by svcs1.digex.net id AA15122
  6.   (5.65c/IDA-1.4.4 for amos-list-out); Sun, 26 Sep 1993 22:53:38 -0400
  7. Received: from access.digex.net by svcs1.digex.net with SMTP id AA15118
  8.   (5.65c/IDA-1.4.4 for <amos-list@svcs1.digex.net>); Sun, 26 Sep 1993 22:53:36 -0400
  9. Received: from kultarr.cs.uwa.oz.au by access.digex.net with SMTP id AA02843
  10.   (5.65c/IDA-1.4.4 for <amos-list@access.digex.com>); Sun, 26 Sep 1993 22:53:31 -0400
  11. Received: from localhost (woolto_c@localhost) by kultarr.cs.uwa.oz.au (8.5/8.5) id KAA10106; Mon, 27 Sep 1993 10:53:09 +0800
  12. From: Zodiac <woolto_c@kultarr.cs.uwa.oz.au>
  13. Message-Id: <199309270253.KAA10106@kultarr.cs.uwa.oz.au>
  14. Subject: Use of Varptr
  15. To: amos-list@access.digex.net
  16. Date: Mon, 27 Sep 93 10:53:08 WST
  17. X-Mailer: ELM [version 2.3 PL9]
  18. Status: RO
  19.  
  20. Hiyas,
  21.   Last night I was stuffing around with passing Varptr's as parameters to
  22. procedures, trying to pass the address of an array of floating point numbers.
  23. The problem is that I couldn't just Poke(Varptr(ARRAY)+OFFSET) to get to
  24. ARRAY(OFFSET).  I noticed that each successive Varptr was 4 units apart, and
  25. this morning I realized why the values I Poked weren't what was stored.
  26.   So could someone tell me 
  27. * How to use Varptr, Poke and Peek to store (properly) and read from an array
  28.   of integers?
  29. * How to use Varptr, Poke and Peek to store (properly) and read from an array
  30.   of floats? (Ie, the set up of the float, such as the mantissa length...that
  31.   sort of garbage, and where they are stored wrt the array's adress).
  32.  
  33. Carl.
  34.  
  35. -- 
  36. --------------------------------------------------------------------------------
  37. "If you wanna be in my gang, stand up with me.
  38.  We'll start a revolution, and make the streets free.
  39.  We'll never weaken, we'll give it our best.
  40.  Can't be defeated, we're better than the rest."
  41.                - Rose Tattoo : 'We Can't be Beaten'.
  42.  
  43. "So tell the whole world I'm not me I'm someone else and he's gone with me too."
  44.                - Nik Kershaw : 'Gone to Pieces'.
  45.  
  46.                              +------------------+
  47.                              | Carl Wooltorton. |
  48.                              +------------------+
  49. --------------------------------------------------------------------------------